package com.bawei.lib_common.mvi.base

import com.bawei.lib_common.mvi.IView

abstract class BaseMVIActivity:BaseActivity(), IView {
    /**
     * 创建viewmodel
     */
    abstract fun generateViewModel()
    override fun initEnv() {
        super.initEnv()
        generateViewModel()
    }

    /**
     * 页面活跃处理状态
     */
    override fun onResume() {
        super.onResume()
        handleState()
    }
}